package com.hyh.fireworks.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 评论表
 * </p>
 *
 * @author summerday
 * @since 2020-11-07
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="Comment对象", description="评论表")
public class Comment extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "允许提醒 1允许")
    private Boolean allowNotification;

    @ApiModelProperty(value = "评论者id")
    private String author;

    @ApiModelProperty(value = "评论者url")
    private String authorUrl;

    @ApiModelProperty(value = "内容")
    private String content;

    @ApiModelProperty(value = "邮箱")
    private String email;

    @ApiModelProperty(value = "评论者头像")
    private String gravatarMd5;

    @ApiModelProperty(value = "评论者ip")
    private String ipAddress;

    @ApiModelProperty(value = "是否为管理员")
    private Integer isAdmin;

    @ApiModelProperty(value = "父级评论id")
    private Long parentId;

    @ApiModelProperty(value = "文章id")
    private Integer postId;

    @ApiModelProperty(value = "状态 1已发布 2待审核 3回收站")
    private Integer status;

    @ApiModelProperty(value = "置顶等级")
    private Integer topPriority;

    @ApiModelProperty(value = "是否置顶 1为置顶 ")
    private Integer isTop;

    @ApiModelProperty(value = "评论用户user_agent")
    private String userAgent;


}
